from selenium.webdriver.common.by import By
"""
以下为app登录模块配置信息
"""
#同意协议
app_agreement = By.XPATH,"//*[@text='同意']"
#我的
app_me = By.XPATH,"//*[@class='android.widget.LinearLayout']"
#我的2
app_me2 = By.XPATH,"//*[@text='我的']"
#用户名框
app_username = By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/user_id_et']"
#密码框
app_password = By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/user_psw_et']"
#勾选协议
app_agree_url = By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/agree_url']"
#登录按钮
app_login_btn = By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/login_tv']"
# 安全提示-暂不修改按钮
app_safe_btn = By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/dialog_cancel']"
#昵称
app_nickname = By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/tv_user_name']"
"""
以下为app加购支付模块配置信息
"""
#页面下方精品课按钮
app_class = By.XPATH,"//*[@text='精品课']"
#放大镜
app_glass = By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/iv_search']"
#搜索框
app_search = By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/ed_search']"
#加购
app_addshop = By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/iv_add_cart']"
#去购物车
app_shopcart = By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/tv_to_shopping']"
#全选按钮
app_all_btn = By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/checkBoxAll']"
#结算按钮
app_buy= By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/tv_settlement']"
#提交订单按钮
app_creatorder= By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/tvSubmitOrder']"
#支付页的返回按钮
app_return= By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/ivBack']"
#订单列表订单号
app_ordernumber= By.XPATH,"//*[@resource-id='cn.ischinese.zzh:id/tv_order_number']"
"""
以下为web登录模块配置信息
"""
#点击弹出登录弹窗的按钮
web_login_btn1 = By.CSS_SELECTOR,".loginspan"
#用户名
web_username = (By.CSS_SELECTOR, ".login_idCardInput")
#密码
web_password = By.CSS_SELECTOR, ".login_pwdInput"
#协议勾选
web_login_agree_url = By.CSS_SELECTOR, ".el-checkbox__inner"
#登录按钮
web_login_btn2 = By.CSS_SELECTOR, ".login_submit"
#登录后的昵称
web_nickname = By.CSS_SELECTOR, ".user-name-span"
"""
web取消订单业务
"""
#头像
web_img = By.CSS_SELECTOR, ".user-name-span"
#我的订单
web_my_order =By.XPATH,"//b[text()='我的订单']"
#删除订单按钮  //span[text()='订单号：C202409262356400000223']/../..//button[1]//span
web_delete_order = By.XPATH, "//span[text()='删除订单']"
#订单号  //div[@class='tophead'][1]/span[1]
web_ordernumber = By.XPATH, "//div[@class='tophead'][1]/span[1]"
#取消订单弹窗  //div//button//span
web_surecancel = By.XPATH, "//*[@class='el-button el-button--default el-button--small el-button--primary ']"
